import { xhrPostJson } from '@/services';
import { DynamicObjectAny } from '@/typings';

const baseUrl = '/arcv';

const api = {
  page: `${baseUrl}/filecbnt/page`,
  create: `${baseUrl}/filecbnt/create`,
  detail: `${baseUrl}/filecbnt/detail`,
  delete: `${baseUrl}/filecbnt/delete`,
  update:`${baseUrl}/filecbnt/update`
};

// 新增
export const filecabinetCreate = (params: DynamicObjectAny) => {
  return xhrPostJson(api.create, params);
};
// 编辑
export const filecabinetUpdate = (params: DynamicObjectAny) => {
  return xhrPostJson(api.update, params);
};
// 删除
export const filecabinetDelete = (params: DynamicObjectAny) => {
  return xhrPostJson(api.delete, params);
};

export default api;
